//
//  NewMidViewController.m
//  OCDome
//
//  Created by 李含文 on 2020/9/4.
//  Copyright © 2020 李含文. All rights reserved.
//

#import "NewMidViewController.h"
#import "HWStarRatingView.h"

@interface NewMidViewController ()
@property (weak, nonatomic) IBOutlet HWStarRatingView *starRatingView;

/* <#name#> */
@property (nonatomic, strong) HWStarRatingView *twostarRatingView;


@end

@implementation NewMidViewController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self hw_switchNavColor:UIColor.whiteColor];
}

- (HWStarRatingView *)twostarRatingView {
    if (!_twostarRatingView) {
        _twostarRatingView = [[HWStarRatingView alloc] initWithFrame:CGRectMake(15, 100, hw_screenWidth-30, 30)];
    }
    return _twostarRatingView;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
//    self.starRatingView.style = HWStarStyleHalf;
    [self.view addSubview:self.twostarRatingView];
}
- (IBAction)btnClick:(id)sender {
    NSLog(@"点击了有延迟吗");
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
